﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace _52fzc.Model.HttpModel
{
    public class RequestModel : BaseEntity
    {
        protected HttpRequest _httpRequest;
        public virtual string Get(string paramName, string defaultVal)
        {
            if (_httpRequest[paramName] == "")
            {
                return defaultVal;
            }
            else
            {
                return _httpRequest[paramName];
            }
        }

        public virtual string Get(string paramName)
        {
            return Get(paramName, "");
        }

        public virtual string[] GetKeys()
        {
            return _httpRequest.Params.AllKeys;
        }
    }
}
